var x : string = "abc";
var r1 : RegExp = /abc/g;
var x1 : string [] | null = r1.exec (x);
console.log (x1);
var x2 : boolean = r1.dotAll;
console.log (x2);
var x3 : string = r1.flags;
console.log (x3);
var x4 : boolean = r1.global;
console.log (x4);
var x6 : boolean = r1.ignoreCase;
console.log (x6);
var x7 : boolean = r1.multiline;
console.log (x7);
var x8 : string = r1.source;
console.log (x8);
var x9 : boolean = r1.sticky;
console.log (x9);
var x10 : boolean = r1.unicode;
console.log (x10);
var x11 : boolean = r1.test (x);
console.log (x11);
var r2 : RegExp = RegExp (/abc/g);
var y1 : string [] | null = r2.exec (x);
console.log (y1);
var y2 : boolean = r2.dotAll;
console.log (y2);
var y3 : string = r2.flags;
console.log (y3);
var y4 : boolean = r2.global;
console.log (y4);
var y6 : boolean = r2.ignoreCase;
console.log (y6);
var y7 : boolean = r2.multiline;
console.log (y7);
var y8 : string = r2.source;
console.log (y8);
var y9 : boolean = r2.sticky;
console.log (y9);
var y10 : boolean = r2.unicode;
console.log (y10);
var y11 : boolean = r2.test (x);
console.log (y11);
var r3 : RegExp = new RegExp (/abc/g);
var z1 : string [] | null = r3.exec (x);
console.log (z1);
var z2 : boolean = r3.dotAll;
console.log (z2);
var z3 : string = r3.flags;
console.log (z3);
var z4 : boolean = r3.global;
console.log (z4);
var z6 : boolean = r3.ignoreCase;
console.log (z6);
var z7 : boolean = r3.multiline;
console.log (z7);
var z8 : string = r3.source;
console.log (z8);
var z9 : boolean = r3.sticky;
console.log (z9);
var z10 : boolean = r3.unicode;
console.log (z10);
var z11 : boolean = r3.test (x);
console.log (z11);
